/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.acme.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author General
 */
@Table
@Entity
public class Stock implements Serializable{
    
    @Id 
    @GeneratedValue(strategy=GenerationType.TABLE)
    @Column
    private long stock_id;
    @Column
    private String symbol;
    @Column
    private String name;
    @Column
    private String sumary;

    public Stock() {
    }

    public Stock(String symbol, String name, String sumary) {
        this.symbol = symbol;
        this.name = name;
        this.sumary = sumary;
    }
    
    public long getStock_id() {
        return stock_id;
    }

    public void setStock_id(long stock_id) {
        this.stock_id = stock_id;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSumary() {
        return sumary;
    }

    public void setSumary(String sumary) {
        this.sumary = sumary;
    } 
    
}
